.class Lcom/waiqin365/lightapp/kehu/bf;
.super Landroid/text/style/ImageSpan;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/CMCreditDetailActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/CMCreditDetailActivity;Landroid/graphics/drawable/Drawable;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/bf;->a:Lcom/waiqin365/lightapp/kehu/CMCreditDetailActivity;

    invoke-direct {p0, p2}, Landroid/text/style/ImageSpan;-><init>(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method


# virtual methods
.method public draw(Landroid/graphics/Canvas;Ljava/lang/CharSequence;IIFIIILandroid/graphics/Paint;)V
    .locals 6

    const/high16 v5, 0x41600000    # 14.0f

    const/4 v4, 0x0

    const-string/jumbo v0, "normal"

    invoke-static {v0, v4}, Landroid/graphics/Typeface;->create(Ljava/lang/String;I)Landroid/graphics/Typeface;

    move-result-object v0

    invoke-virtual {p9, v0}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/bf;->a:Lcom/waiqin365/lightapp/kehu/CMCreditDetailActivity;

    invoke-static {v0, v5}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v0

    int-to-float v0, v0

    invoke-virtual {p9, v0}, Landroid/graphics/Paint;->setTextSize(F)V

    invoke-virtual {p9, p2, p3, p4}, Landroid/graphics/Paint;->measureText(Ljava/lang/CharSequence;II)F

    move-result v0

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/bf;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v1

    add-int/lit8 v0, v0, 0xa

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/bf;->a:Lcom/waiqin365/lightapp/kehu/CMCreditDetailActivity;

    const/high16 v3, 0x41900000    # 18.0f

    invoke-static {v2, v3}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v2

    invoke-virtual {v1, v4, v4, v0, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    invoke-super/range {p0 .. p9}, Landroid/text/style/ImageSpan;->draw(Landroid/graphics/Canvas;Ljava/lang/CharSequence;IIFIIILandroid/graphics/Paint;)V

    const-string/jumbo v0, "#F9FE37"

    invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v0

    invoke-virtual {p9, v0}, Landroid/graphics/Paint;->setColor(I)V

    const-string/jumbo v0, "normal"

    invoke-static {v0, v4}, Landroid/graphics/Typeface;->create(Ljava/lang/String;I)Landroid/graphics/Typeface;

    move-result-object v0

    invoke-virtual {p9, v0}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/bf;->a:Lcom/waiqin365/lightapp/kehu/CMCreditDetailActivity;

    invoke-static {v0, v5}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v0

    int-to-float v0, v0

    invoke-virtual {p9, v0}, Landroid/graphics/Paint;->setTextSize(F)V

    invoke-interface {p2, p3, p4}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    const/high16 v1, 0x40a00000    # 5.0f

    add-float/2addr v1, p5

    add-int/lit8 v2, p7, 0x1

    int-to-float v2, v2

    invoke-virtual {p1, v0, v1, v2, p9}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    return-void
.end method
